home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
tlxutl10.zip
/
AUTODOWN.SLT
< prev
next >
Wrap
Text File
|
1991-01-25
|
1KB
|
37 lines
main()
{
prints("AUTODOWN 1.00 activated");
int protocol, stat, t1, t2, t3, t4, t5, t6, t7, t8;
str filename[12];
TOP:
filename = "findit!";
t1 = track ("Protocol Type: Ymodem/G ",1);
t2 = track ("Protocol Type: Xmodem ",0);
t3 = track ("Protocol Type: Xmodem-CRC ",0);
t4 = track ("Protocol Type: 1K-Xmodem ",0);
t5 = track ("Protocol Type: 1K-Xmodem-G ",0);
t6 = track ("Protocol Type: Ymodem ",0);
t7 = track ("(Ctrl-X) Aborts Transfer",0);
t8 = track ("- Start your download ...",0);
while (carrier()) { // Program will quit when you hang up
terminal();
stat = track_hit(0);
if (stat == t1) { // All of these just set the protocol
protocol = 'E'; // to be used during the download
filename = "";
} if (stat == t2 or stat == t3)
protocol = 'X';
if (stat == t4)
protocol = '1';
if (stat == t5)
protocol = 'G';
if (stat == t6) {
protocol = 'Y';
filename = "";
} if (stat == t7 or stat == t8) { // Actually initiate the download
delay_scr(10);
receive(protocol,filename);
}
}
track_free(0);
}